Repository navigation
fix(sampo/core/github-action): apply pre-release audit fixes - #387
Merged
Merged
Conversation
🧭 Changeset detectedMerging this PR will release the following updates: sampo (Cargo) — patch version bumpPatch changes
sampo-core (Cargo) — patch version bumpPatch changes
sampo-github-action (Cargo) — patch version bumpPatch changes
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What has changed?
Four fixes from the pre-0.25 audit, to merge before release PR #386.
sampo updateand the new-version hint looked for releases taggedsampo-v<version>, while the CLI's releases have been taggedcargo-sampo-v<version>since 0.18.0, so neither found anything newer than 0.17.4. Both now matchcargo-sampo-vonly. Thesampo-vreleases stop at 0.17.4, older than any CLI with this fix.In Python projects,
sampo publishfailed for a uv workspace member.uv buildwrote to the workspace root'sdist/, whileuv publish, run from the member, looked in the member'sdist/and found nothing. The build now passes--out-dir dist.The Action's 30-second request timeout cut the upload of a large release asset short. An upload now has 30 minutes, and the other API calls keep 30 seconds.
The Action README example set a
CARGO_TOKENenvironment variable that neither Sampo nor cargo reads. It now setsCARGO_REGISTRY_TOKEN, which cargo reads, beside the other registries' tokens. Thecargo-tokeninput still works.How is it tested?
A unit test renders the repository's own
tag_formatfor the CLI and compares it with the prefixsampo updatematches. An integration test publishes a uv workspace member through a stand-inuvthat builds into the workspace root unless told otherwise, as uv does. The upload timeout has no test, as a test would have to wait past 30 seconds.sampo updatedid not run against GitHub, and the README example did not run in a workflow.How is it documented?
The corrected example in the Action README, and three patch changesets, one for each of the other fixes.